<%-- 
    Document   : UserForm
    Created on : Dec 1, 2012, 6:38:56 PM
    Author     : Gary
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s"%>

<s:if test="conference==null">
    <s:set name="title" value="Add Conference"/>
</s:if>
<s:else>
    <s:set name="title" value="Update Conference"/>
</s:else>
<!DOCTYPE html>
<html>
    <head>
        <style>td { white-space:nowrap; }</style>
        <title><s:property value="#title"/></title>
    </head>
    <body>
        
        <h1><s:property value="#title"/></h1>
         <fieldset>
                <legend>User Information</legend>
        <s:form namespace="/user" action="update_%{user.userName}">
			<s:actionerror/>
          
                 <table>
                <tr>
                    <td class="tdLabel"><b>User Name:</b></td>
                    <td><input type="text" id="user.userName" value="<s:property value="user.userName"/>" size ="40" readonly="isUpdate" name="user.userName" />
                    <s:fielderror><s:param>user.userName</s:param></s:fielderror></td>
                </tr>
                <tr>
                     <td class="tdLabel"><b>Blog:</b></td>
                     <td><input type="text" id="profile.blog" value="<s:property value="profile.blog"/>" size ="40" readonly="isUpdate" name="profile.blog" />
                </tr>
                <tr>
                     <td class="tdLabel"><b>Website:</b></td>
                     <td><input type="text" id="profile.website" value="<s:property value="profile.website"/>" size ="40" readonly="isUpdate" name="profile.website" />
                </tr>
                 <tr>
                     <td class="tdLabel"><b>Company Name:</b></td>
                     <td><input type="text" id="profile.companyName" value="<s:property value="profile.companyName"/>" size ="40" readonly="isUpdate" name="profile.companyName" />
                </tr>
                <tr>
                     <td class="tdLabel"><b>Company Address:</b></td>
                     <td><input type="text" id="profile.companyAddress" value="<s:property value="profile.companyAddress"/>" size ="40" readonly="isUpdate" name="profile.companyAddress" />
                </tr>
                <tr>
                     <td class="tdLabel"><b>Email:</b></td>
                     <td><input type="text" id="profile.email" value="<s:property value="profile.email"/>" size ="40" readonly="isUpdate" name="profile.email" />
                </tr>
                <tr>
                     <td class="tdLabel"><b>Home Tel:</b></td>
                     <td><input type="text" id="profile.homeTel" value="<s:property value="profile.homeTel"/>" size ="40" readonly="isUpdate" name="profile.homeTel" />
                </tr>
                <tr>
                     <td class="tdLabel"><b>Mobile:</b></td>
                     <td><input type="text" id="profile.mobile" value="<s:property value="profile.mobile"/>" size ="40" readonly="isUpdate" name="profile.mobile" />
                </tr>
                <tr>
                     <td class="tdLabel"><b>Address:</b></td>
                     <td><input type="text" id="profile.address" value="<s:property value="profile.address"/>" size ="40" readonly="isUpdate" name="profile.address" />
                </tr>
                <tr>
                     <td class="tdLabel"><b>Postcode:</b></td>
                     <td><input type="text" id="profile.postcode" value="<s:property value="profile.postcode"/>" size ="40" readonly="isUpdate" name="profile.postcode" />
                </tr>
                <tr>
                    <td colspan="2">
                        <s:hidden key="isUpdate"/>
                        <s:submit label="Save"/>
                        &nbsp;&nbsp;&nbsp;
                        <s:submit key="Cancel" action="list_all"/>
                    </td>
                </tr>
            </table>
       
           
        </s:form>
        </fieldset>
    </body>
</html>
